﻿// -----------------------------------------------------------------------
// <copyright file="GraphicEqMask.cs" company="Abyssalsoft">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace Core.Player.Masks
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Text;
    using System.Windows.Forms;

    /// <summary>
    /// Graphic equalizer mask
    /// </summary>
    public partial class GraphicEqMask : UserControl
    {
        /// <summary>Code behind for the graphic equalizer</summary>
        private Core.Player.Audio.Filters.GraphicEqualizer visualisation;

        /// <summary>
        /// Initializes a new instance of the <see cref="GraphicEqMask"/> class.
        /// </summary>
        public GraphicEqMask()
        {
            this.InitializeComponent();
            this.SetStyle(ControlStyles.OptimizedDoubleBuffer, false);
            this.visualisation = new Core.Player.Audio.Filters.GraphicEqualizer(ref this.GraphicEqImage);
        }

        /// <summary>
        /// Gets or sets the code behind class
        /// </summary>
        public Core.Player.Audio.Filters.GraphicEqualizer Visualisation
        {
            get
            {
                return this.visualisation;
            }

            set
            {
                this.visualisation = value;
            }
        }
    }
}
